package com.jingdianjichi.user.service;

import com.jingdianjichi.common.PageResponse;
import com.jingdianjichi.user.entity.po.SysUserPo;
import com.jingdianjichi.user.entity.req.SysUserReq;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * (SysUser)表服务接口
 *
 * @author makejava
 * @since 2024-12-06 20:22:16
 */
public interface SysUserService {

    /**
     * 通过ID查询单条数据
     */
    SysUserPo queryById(Long id);

    /**
     * 分页查询
     */
    PageResponse<SysUserPo> queryByPage(SysUserReq sysUserReq);

    /**
     * 新增数据
     */
    SysUserPo insert(SysUserReq sysUserReq);

    /**
     * 修改数据
     */
    SysUserPo update(SysUserReq sysUserReq);

    /**
     * 通过主键删除数据
     */
    boolean deleteById(Long id);

    Long queryCount(Map<String, Object> conditions);
}
